package com.daxt.model.service.archives.vo;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "档案模板", description = "档案模板")
//@TableName("\"daxt\".\"ARCHIVES_TEMPLET\"")
@TableName("archives_templet")
public class ArchivesTemplet implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "id", name = "id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "全宗Id", name = "fondsId")
	private String fondsId;
	@ApiModelProperty(value = "全宗号", name = "fondsNum")
	private String fondsNum;

	@ApiModelProperty(value = "门类Id", name = "typeId")
	private String typeId;
	@ApiModelProperty(value = "门类号", name = "typeNum")
	private String typeNum;

	@NotBlank(message = "模板ID不能为空")
	@ApiModelProperty(value = "模板ID", name = "templetId")
	private String templetId;

//	@TableField(exist = false)

//	@NotBlank(message="文件地址不能为空")


	//----关联基础模板 start

	@ApiModelProperty(value = "文件地址", name = "fileUrl")
	@TableField(exist = false)
	private String fileUrl;

	@ApiModelProperty(value = "0 件模式  1 卷模式", name = "model")
	@TableField(exist = false)
	private String model;

	@ApiModelProperty(value = "模板名称", name = "fileName")
	@TableField(exist = false)
	private String fileName;

	//----关联基础模板 end


//	/**
//	 *
//	 */
//	private static final long serialVersionUID = 1L;
//	@ApiModelProperty(value = "id", name = "id")
//	@TableId(value = "id", type = IdType.AUTO)
//	private Long id;
//	@NotBlank(message = "文件名不能为空")
//	@ApiModelProperty(value = "文件名", name = "fileName")
//	private String fileName;
//	@ApiModelProperty(value = "扩展名", name = "extName")
//	private String extName;
//	@NotBlank(message="门类号不能为空")
//	@ApiModelProperty(value = "类号", name = "typeNum")
//	private String typeNum;

//
//	@NotBlank(message="全宗ID不能为空")
//	@ApiModelProperty(value = "全宗Id", name = "fondsId")
//	private String fondsId;
//
//	@NotBlank(message="文件地址不能为空")
//	@ApiModelProperty(value = "文件地址", name = "fileUrl")
//	private String fileUrl;
//	@ApiModelProperty(value = "0 件模式  1 卷模式", name = "model")
//	private String model;
//	@ApiModelProperty(value = "0 entity 1list", name = "dataType")
//	private String dataType;
//	@ApiModelProperty(value = "0无  1案卷目录 2备考表 3卷内目录", name = "tType")
//	private String tType;
//	private Integer replaceRow;
}
